package com.ruoyi.project.lely.bean.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import javax.validation.constraints.Digits;
import javax.validation.constraints.NotNull;
import org.hibernate.validator.constraints.Length;

/**
 * 账户流水
 *
 * @author luoyong
 */
@Data
@ApiModel("账户流水 入参DTO")
public class LyAccountTraceDTO {

    @ApiModelProperty("ID")
    private Long id;

    @Length(max = 50, message = "操作流水长度不能超过50位")
    @ApiModelProperty("操作流水")
    private String traceSn;

    @NotNull
    @ApiModelProperty("用户表的用户ID")
    private Integer userId;

    @ApiModelProperty("操作类型 0:系统结算 1:用户提现")
    private Integer type;

    @Digits(integer = 10 - 2, fraction = 2)
    @ApiModelProperty("操作金额")
    private BigDecimal amount;

    @Digits(integer = 10 - 2, fraction = 2)
    @ApiModelProperty("总申请金额")
    private BigDecimal totalAmount;

    @Length(max = 20, message = "手机号长度不能超过20位")
    @ApiModelProperty("手机号")
    private String mobile;

    @Length(max = 10, message = "短信提取码长度不能超过10位")
    @ApiModelProperty("短信提取码")
    private String smsCode;

    @ApiModelProperty("审批状态")
    private Integer status;

    @Length(max = 255, message = "消息内容长度不能超过255位")
    @ApiModelProperty("消息内容")
    private String traceMsg;

}
